﻿using mozhi.smarterp.Finance.Enums;
using System;
using System.Collections.Generic;

namespace mozhi.smarterp.Finance.Treasuries.Collections
{
    public class CollectionCreateDto 
    {
        public DateTime Date { get; set; }

        public CollectionType Type { set; get; }

        public TradingPartnerType TradingPartnerType { set; get; }

        public Guid? SupplierId { set; get; }

        public Guid? EmployeeId { set; get; }

        public Guid? CustomerId { set; get; }

        
        public Guid? BankAccountId { set; get; }

        public Guid CurrencyId { set; get; }

        public decimal ExchangeRate { set; get; }


        /// <summary>
        /// 是否预收款
        /// </summary>
        public bool IsAdvanced { set; get; }

        /// <summary>
        /// 是否退款
        /// </summary>
        public bool IsRefund { set; get; }

        public string Comment { get; set; }

        public List<CollectionItemCreateDto> Items { set; get; }
    }

    public class CollectionItemCreateDto
    {
        public decimal AmountFr { set; get; }

        public string Remark { set; get; }
    }
}
